Advertisement
myrdok123

01. Excellent Result

May 18th, 2024
461
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1. package ConditionalStatements;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class ExcellentResult_01 {
  6.  
  7.     public static void main(String[] args) {
  8.  
  9.         Scanner scanner = new Scanner(System.in);
  10.  
  11.         int grade = Integer.parseInt(scanner.nextLine());//прочитаме оценка от конзолата
  12.  
  13.         //Проверяваме дали оценката е >= 5 -> ако е вярно принтираме "Excellent!"
  14.         if(grade >= 5){
  15.             System.out.println("Excellent!");
  16.         }
  17.  
  18.  
  19.     }
  20. }
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement